package com.shengcheng;

import com.shengcheng.entity.BaseCategory1;
import com.shengcheng.entity.BaseCategory3;
import com.shengcheng.entity.BaseCategoryView;
import com.shengcheng.result.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "tingshu-album")
public interface CategoryFeignClient {

    @GetMapping("/api/album/category/getCategoryVive/{category3Id}")
     BaseCategoryView getCategoryVive(@PathVariable Long category3Id);


    @GetMapping("/api/album/category/getCategory3ListByCategory1Id/{category1Id}")
    RetVal<List<BaseCategory3>> getCategory3ListByCategory1Id(@PathVariable Long category1Id);


    @GetMapping("getCategory1")
    RetVal<List<BaseCategory1>> getCategory1();

}
